import request from '@/utils/request'

// 查询社保缴纳列表
export function listSbjr(query) {
  return request({
    url: '/basebill/sbjr/list',
    method: 'get',
    params: query
  })
}

// 查询社保缴纳详细
export function getSbjr(fid) {
  return request({
    url: '/basebill/sbjr/' + fid,
    method: 'get'
  })
}

// 获取流水号
export function getFNumber(){
  return request({
    url: 'basebill/sbjr/getFNumber',
    method: 'get',
  })
}

// 新增社保缴纳
export function addSbjr(data) {
  return request({
    url: '/basebill/sbjr',
    method: 'post',
    data: data
  })
}

// 修改社保缴纳
export function updateSbjr(data) {
  return request({
    url: '/basebill/sbjr',
    method: 'put',
    data: data
  })
}

// 删除社保缴纳
export function delSbjr(fid) {
  return request({
    url: '/basebill/sbjr/' + fid,
    method: 'delete'
  })
}

// 调用eas接口
export function importSbjr(fids) {
  return request({
    url: '/basebill/sbjr/importSbjr/' + fids,
    method: 'get'
  })
}
